<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<link href="/TPlayWeb/tplaystore.css" rel="Stylesheet" type="text/css">
	</head>
	
		<script language="JavaScript"> 
			function runSubmit(form)
			{
				
				if(form.numeroversion.value == ""){
					alert ("Ingresar el numero de version");
				}
				else if(form.file.value == ""){
					alert ("Ingresar la varsion");
				}
 				else{
 					document.subirversion.submit();
 				}
			}
		</script>
	
	<body>
		<jsp:include page="/WEB-INF/encabezado.jsp"/>
		<div id="contenido">	
		    <form name="subirversion"action="/TPlayWeb/juegos/guardarversion" enctype="MULTIPART/FORM-DATA" method="post">
		    
		    	<div  align=center style="height: 90px">
		            
		            <p>
						<label>NumeroVersion:</label>
						<br/>
							<input type="text" name="numeroversion"/>
						<br/>
					</p>
					<br/>
		            <input type="file" name="file" /><br/><br/>
		            <input type="button" value="Upload" onclick="runSubmit(this.form)"/>
		            
		        </div>
		        
	        </form>
		</div>
		<jsp:include page="/WEB-INF/pie.jsp"/>	        
	</body>
	
</html>